import request from "@/libs/request";

export function getCourseList(data) {
  return request({
    url: "/reading/api/getCourseList",
    method: "post",
    data,
  });
}

export function getLevelList(data) {
  return request({
    url: "/reading/api/getLevelList",
    method: "post",
    data,
  });
}

export function getArticleList(data) {
  return request({
    url: "/reading/api/getArticleList",
    method: "post",
    data,
  });
}

export function getArticleAndQuestion(data) {
  return request({
    url: "/reading/api/getArticleAndQuestion",
    method: "post",
    data,
  });
}

export function saveArticleRecord(data) {
  return request({
    url: "/reading/api/saveRecord",
    method: "post",
    data,
  });
}

export function saveNewWord(data) {
  return request({
    url: "/reading/api/saveWordNew",
    method: "post",
    data,
  });
}

export function getNewWordList(data) {
  return request({
    url: "/reading/api/getWordNewList",
    method: "post",
    data,
  });
}

export function readReport(data) {
  return request({
    url: "/reading/api/report",
    method: "post",
    data,
  });
}

export function getRandowNewWordList(data) {
  return request({
    url: "/reading/api/getRandXmWordNewList",
    method: "post",
    data,
  });
}

export function deleteNewWordList(data) {
  return request({
    url: "/reading/api/deleteWordNewList",
    method: "post",
    data,
  });
}
